package com.sds.session.manager.vo;

import javax.servlet.http.Cookie;

import com.sds.session.util.CookieUtil;

public class Domain {
	private String name;
	private Cookie[] cookie;
	public Domain(String name, Cookie[] cookie) {
		this.name = name;
		this.cookie = cookie;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Cookie[] getCookie() {
		return cookie;
	}
	public void setCookie(Cookie[] cookie) {
		this.cookie = cookie;
	}
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("{"+getName()+"}{"+CookieUtil.getCookieString(getCookie())+"} ");
		return sb.toString();
	}
}
